package com.ruoyi.chengkao.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.chengkao.mapper.CkOccupationMapper;
import com.ruoyi.chengkao.domain.CkOccupation;
import com.ruoyi.chengkao.service.ICkOccupationService;

/**
 * 职业类别信息Service业务层处理
 * 
 * @author xiaosong
 * @date 2025-03-10
 */
@Service
public class CkOccupationServiceImpl implements ICkOccupationService 
{
    @Autowired
    private CkOccupationMapper ckOccupationMapper;

    /**
     * 查询职业类别信息
     * 
     * @param id 职业类别信息主键
     * @return 职业类别信息
     */
    @Override
    public CkOccupation selectCkOccupationById(Long id)
    {
        return ckOccupationMapper.selectCkOccupationById(id);
    }

    @Override
    public List<CkOccupation> selectCkOccupationAll()
    {
        return ckOccupationMapper.selectCkOccupationAll();
    }

    /**
     * 查询职业类别信息列表
     * 
     * @param ckOccupation 职业类别信息
     * @return 职业类别信息
     */
    @Override
    public List<CkOccupation> selectCkOccupationList(CkOccupation ckOccupation)
    {
        return ckOccupationMapper.selectCkOccupationList(ckOccupation);
    }

    /**
     * 新增职业类别信息
     * 
     * @param ckOccupation 职业类别信息
     * @return 结果
     */
    @Override
    public int insertCkOccupation(CkOccupation ckOccupation)
    {
        return ckOccupationMapper.insertCkOccupation(ckOccupation);
    }

    /**
     * 修改职业类别信息
     * 
     * @param ckOccupation 职业类别信息
     * @return 结果
     */
    @Override
    public int updateCkOccupation(CkOccupation ckOccupation)
    {
        return ckOccupationMapper.updateCkOccupation(ckOccupation);
    }

    /**
     * 批量删除职业类别信息
     * 
     * @param ids 需要删除的职业类别信息主键
     * @return 结果
     */
    @Override
    public int deleteCkOccupationByIds(Long[] ids)
    {
        return ckOccupationMapper.deleteCkOccupationByIds(ids);
    }

    /**
     * 删除职业类别信息信息
     * 
     * @param id 职业类别信息主键
     * @return 结果
     */
    @Override
    public int deleteCkOccupationById(Long id)
    {
        return ckOccupationMapper.deleteCkOccupationById(id);
    }
}
